import request from '@/utils/request'

// 查询商品信息列表
export function listProductSnapshot(query) {
  return request({
    url: '/pms/productSnapshot/list',
    method: 'get',
    params: query
  })
}

// 查询商品信息详细
export function getProductSnapshot(id) {
  return request({
    url: '/pms/productSnapshot/' + id,
    method: 'get'
  })
}

// 新增商品信息
export function addProductSnapshot(data) {
  return request({
    url: '/pms/productSnapshot',
    method: 'post',
    data: data
  })
}

// 修改商品信息
export function updateProductSnapshot(data) {
  return request({
    url: '/pms/productSnapshot',
    method: 'put',
    data: data
  })
}

// 删除商品信息
export function delProductSnapshot(id) {
  return request({
    url: '/pms/productSnapshot/' + id,
    method: 'delete'
  })
}
